package com.young.springdemo.service.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @program: springdemo
 * @description 创建注解类
 * @author: Young
 * @create: 2020-05-27 14:40
 **/
@Target(ElementType.METHOD)//方法级别
@Retention(RetentionPolicy.RUNTIME)
public @interface HandleParam {

    /**
     * @author Young
     * @description 去除一些不需要验证的参数
     * @date 14:44 2020/5/27
     **/
    String[] excludeParams() default {};

    boolean notNull() default false;

    boolean notBlank() default true;

}
